/* 主要样式文件 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f5f5f5;
}

.study-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

.word-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.word-header {
    margin-bottom: 20px;
}

.word-text {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.phonetic {
    font-size: 18px;
    color: #666;
}

.word-details {
    margin: 20px 0;
}

.translation {
    font-size: 22px;
    color: #333;
    margin: 15px 0;
    font-weight: 500;
}

.example-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.example {
    font-size: 16px;
    color: #555;
    font-style: italic;
    margin-bottom: 8px;
}

.example-translation {
    font-size: 16px;
    color: #777;
}

.hint {
    color: #999;
    font-size: 16px;
    margin: 30px 0;
}

.show-answer-btn {
    background: none;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.show-answer-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-know {
    background-color: #5cb85c;
    color: white;
    flex: 1;
}

.btn-know:hover {
    background-color: #4cae4c;
}

.btn-dont-know {
    background-color: #d9534f;
    color: white;
    flex: 1;
}

.btn-dont-know:hover {
    background-color: #d43f3a;
}

/* 统计页面样式 */
.statistics-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.statistics-page h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #4a90e2;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.progress-section h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #333;
}

.progress-bar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.progress-bars {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.mastered-bar {
    background-color: #5cb85c;
}

.learning-bar {
    background-color: #f0ad4e;
}
